package cn.itsource.system.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Menu {
    public Integer id;
    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    private Integer parentId;
    private String parentName;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<Menu> children =new ArrayList<>();

}
